package Book;

public class PairOfUidAndBookId {
    private int Userid;
    private int Bookid;
    public PairOfUidAndBookId(){

    }
    public PairOfUidAndBookId(int userid, int bookid){
        this.Bookid = bookid;
        this.Userid = userid;
    }

    public int getUserid() {
        return Userid;
    }

    public void setUserid(int userid) {
        Userid = userid;
    }

    public int getBookid() {
        return Bookid;
    }

    public void setBookid(int bookid) {
        Bookid = bookid;
    }
    public String toJson(){
        StringBuilder json = new StringBuilder();
        json.append(Userid).append(",");
        json.append(Bookid);
        return json.toString();
    }
}
